<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="icon" href="/public/images/favicon.ico"/>

    <title>优创联动 | 云客服</title>

    <link href="/public/stylesheets/bootstrap.min.css" rel="stylesheet">
    <link href="/public/font-awesome/css/font-awesome.css" rel="stylesheet">

    <!-- Toastr style -->
    <link href="/public/stylesheets/plugins/toastr/toastr.min.css" rel="stylesheet">

    <!-- Gritter -->
    <link href="/public/javascripts/plugins/gritter/jquery.gritter.css" rel="stylesheet">

    <link href="/public/stylesheets/animate.css" rel="stylesheet">
    <link href="/public/stylesheets/style.css" rel="stylesheet">
     <link href="/public/stylesheets/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    
    <link href="/public/stylesheets/main.css" rel="stylesheet">
     <script src="/public/javascripts/jquery.js"></script>
   
    <style type="text/css">
        body{
            background-color: #ffffff;
        }
    </style>

</head>

<body>


    <div id="wrapper">


  <div id="page-wrapper-inner" class="gray-bg dashbard-1">
   

    <!-- dolayout  begin -->
     #{doLayout /}
  <!-- dolayout end -->
  

           
           
            </div>
        </div>

    <!-- Mainly scripts -->
    <script src="/public/javascripts/bootstrap.min.js"></script>
 <!--  <script src="/public/javascripts/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="/public/javascripts/plugins/slimscroll/jquery.slimscroll.min.js"></script> 


    <!-- Custom and plugin javascript -->
<!--    <script src="/public/javascripts/inspinia.js"></script> -->
    <script src="/public/javascripts/plugins/pace/pace.min.js"></script> 

    <!-- jQuery UI -->
    <script src="/public/javascripts/plugins/jquery-ui/jquery-ui.min.js"></script>
    <script src="/public/javascripts/plugins/sweetalert/sweetalert.min.js"></script>
    

 
   <div class="modal inmodal fade" id="mainDialog" tabindex="-1" role="dialog"  aria-hidden="true">
   <div class="modal-dialog modal-lg">
   <div class="modal-content" data-name="content-body" style="min-height: 400px; height:auto;overflow-y:auto; ">
    </div>
    </div>
  </div>

    <script type="text/javascript">
    
    $(document).ready(function(){
    	
     #{if flash.success||flash.error}
        var _type = '${flash.error?"error":"success"}';
        var _msg = '${flash.error?flash.error:flash.success}';
        showTipInfo({type:_type,msg:_msg});
     #{/if}
    	
                 $('#mainDialog').on("show.bs.modal",function(event){
                     var btn = $(event.relatedTarget);
                     var content = $(this).find('[data-name="content-body"]');
                     var fuc = btn.data("func");
                     var _url = btn.data("url");
                     if(fuc && fuc=="showDetail"){
                          $.get(_url).done(function(_html){
                            content.html(_html);
                         }); 
                     }
                 }).on('hidden.bs.modal', function (e) {
                     $('.modal-content',$(this)).empty();
                }); 
    })
    
    function tipAlert(options){
        swal({
            title: options.title||"",
            type: options.type||"warning",
            showCancelButton: false,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确定",
            closeOnConfirm: true
        });   
    }
    
    function tipInfo(options,callback){
        swal({
            title: options.title||"",
            type: options.type||"success",
            showCancelButton: false,
            confirmButtonColor: "#8CD4F5",
            confirmButtonText: "确定",
            closeOnConfirm: true
        },function(){
            callback();
        });   
    }
    
    
   function tipConfirm(options,callback){
       swal({
           title: options.title||"",
           type: "warning",
           showCancelButton: true,
           cancelButtonText:'否',
           confirmButtonColor: "#DD6B55",
           confirmButtonText: "是",
           closeOnConfirm: false
       }, function () {
          callback(); 
       });
   }
   
   function showTipInfo(options){
	   window.parent.showTip(options)
   }
   
       

    
    
  
    </script>
</body>
</html>
